import logging
import unittest,time
from selenium import webdriver
from week3_93.Page.Page1 import Page1
from week3_93.Page.Page2 import Page2
from week3_93.Page.Page3 import Page3
from week3_93.Tools.Tools import Toools

class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        Toools().log()


    def tearDown(self):
        time.sleep(2)
        self.driver.quit()

    def test_01(self):
        logging.info('start case')
        po = Page1(self.driver)
        po.jiuxian_01()
        logging.info('case end')

    def test_02(self):
        po = Page2(self.driver)
        po.jiuxian_02()

    def test_03(self):
        po = Page3(self.driver)
        po.jiuxian_03()
